<template>
  <a-table
    ref="table"
    bordered
    rowKey="id"
    :columns="columns"
    :dataSource="dataSource"
    :pagination="ipagination"
    :loading="loading"
   >
  </a-table>
</template>

<script>
import {KsListMixin} from '@/mixins/KsListMixin'


export default {
  name: 'DepartUserList',
  mixins: [KsListMixin],
  props:['departId'],
  data() {
    return {
      description: '用户管理',
      columns: [
        {
          title: '序号',
          dataIndex: '',
          key:'rowIndex',
          width:50,
          customRender:function (t,r,index) {
            return parseInt(index)+1;
          }
        },
        {
          title: '用户名称',
          width: 180,
          dataIndex: 'realname',
          scopedSlots: {customRender: "avatarslot"}
        },
        {
          title: '用户账号',
          dataIndex: 'username',
          width: 120,
          sorter: true
        },
        /*{
          title: '职务',
          width: 100,
          dataIndex: 'post_dictText'
        },*/
        {
          title: '用户状态',
          width: 80,
          dataIndex: 'status_dictText'
        }

      ],
      url: {
        list: "/platform/system/sysUser/list",
      },
    }
  },
}
</script>

<style scoped>

</style>